package com.baibei.model;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;

/**
 * Created by shenminjie on 2017/9/13.
 * mail:shenminjie@100bei.com
 */

public class SuggestNumbersInfo implements Serializable, Parcelable {
    private String numbers;
    private int maxNumber;

    public String getNumbers() {
        return numbers;
    }

    @Override
    public String toString() {
        return "SuggestNumbersInfo{" +
                "numbers='" + numbers + '\'' +
                ", maxNumber=" + maxNumber +
                '}';
    }

    public int getMaxNumber() {
        return maxNumber;
    }

    public void setMaxNumber(int maxNumber) {
        this.maxNumber = maxNumber;
    }

    public void setNumbers(String numbers) {
        this.numbers = numbers;
    }

    public SuggestNumbersInfo() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.numbers);
        dest.writeInt(this.maxNumber);
    }

    protected SuggestNumbersInfo(Parcel in) {
        this.numbers = in.readString();
        this.maxNumber = in.readInt();
    }

    public static final Creator<SuggestNumbersInfo> CREATOR = new Creator<SuggestNumbersInfo>() {
        @Override
        public SuggestNumbersInfo createFromParcel(Parcel source) {
            return new SuggestNumbersInfo(source);
        }

        @Override
        public SuggestNumbersInfo[] newArray(int size) {
            return new SuggestNumbersInfo[size];
        }
    };
}
